3b24253c951f41eac448351064400c0ba9f646cc,portal/osgi-services/org.wso2.is.portal.user.client.api/src/main/java/org/wso2/is/portal/user/client/api/IdentityStoreClientServiceImpl.java,IdentityStoreClientServiceImpl,authenticate,#String#char[]#,310
Before Change
PasswordCallback passwordCallback = new PasswordCallback("password", false);
passwordCallback.setPassword(password);
return UserPortalClientApiDataHolder.getInstance().getRealmService().getIdentityStore().authenticate(usernameClaim,
new Callback[]{passwordCallback}, null);
}
After Change
PasswordCallback passwordCallback = new PasswordCallback("password", false);
passwordCallback.setPassword(password);
//todo
AuthenticationContext authenticationContext = UserPortalClientApiDataHolder.getInstance().getRealmService().getIdentityStore().authenticate(usernameClaim,
new Callback[]{passwordCallback}, null);
User identityUser = authenticationContext.getUser();
return new UUFUser(null, identityUser.getUniqueUserId(), identityUser.getDomainName());
} catch (AuthenticationFailure | IdentityStoreException e) {
//todo
e.printStackTrace();